home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5277 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: jhunix.hcf.jhu.edu!hbien
  2. From: hbien@jhunix.hcf.jhu.edu (Harold Bien)
  3. Newsgroups: comp.object,comp.lang.c++,comp.ai.alife,sci.comp-aided
  4. Subject: Re: [Q] Growing Objects
  5. Followup-To: comp.object,comp.lang.c++,comp.ai.alife,sci.comp-aided
  6. Date: 3 Feb 1996 09:55:30 GMT
  7. Organization: HCF - Johns Hopkins University, Baltimore, Maryland, USA
  8. Message-ID: <4evbei$55v@news.jhu.edu>
  9. References: <30FE8297.41C6@bme.jhu.edu> <RMARTIN.96Jan20093428@rcm.oma.com> <4ef3bo$mjo@news.jhu.edu> <310C2EE2.8171C34@alcyone.com>
  10. NNTP-Posting-Host: 128.220.2.5
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Erik Max Francis (max@alcyone.com) wrote:
  14. : Harold Bien wrote:
  15.  
  16. : Hmm -- I never saw anyone say that your approach was incorrect.
  17.  
  18.     That's why I put it in quotes.  I didn't mean literally 
  19. incorrect.  Instead, I meant that I felt it might be incorrect.
  20.  
  21. : > The Run() function is the main function called and will
  22. : > dispatch to the changing RealRun() function.  However, the Run() function
  23. : > doesn't really do much except call _OTHER_ subfuctions.  Therefore,
  24. : > should I need new methods like RespondToLight() et al. I will only have
  25. : > to put them in the RealRun() function relevant to the state.  Am I
  26. : > overlooking something?  I have yet to implement anything, but am afraid
  27. : > of commiting myself to something which will not stand up to the test of
  28. : > time.  Thanks for your respons.
  29.  
  30.     I understand the utility of abstract/virtual classes, but my 
  31. problem is that the classes are held in a container class.  If I were to 
  32. morph a class, I must somehow squeeze it into the same space as the 
  33. former class in order for the container class (which holds pointers) to 
  34. maintain a valid pointer to the class.
  35.